using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

[Serializable]
public class SearchCondition
{
    #region Fields
    string _proName;
    decimal _catID;
    RangeValue<decimal> _startingPrice, _curBid;
    RangeValue<DateTime> _efd; 
    #endregion

    #region Properties
    public string ProName
    {
        get { return _proName; }
        set { _proName = value; }
    }

    public decimal CatID
    {
        get { return _catID; }
        set { _catID = value; }
    }

    public RangeValue<decimal> StartingPrice
    {
        get { return _startingPrice; }
        set { _startingPrice = value; }
    }

    public RangeValue<decimal> CurBid
    {
        get { return _curBid; }
        set { _curBid = value; }
    }

    public RangeValue<DateTime> Efd
    {
        get { return _efd; }
        set { _efd = value; }
    } 
    #endregion

    public SearchCondition() { }

    public SearchCondition(string proName, decimal catID, RangeValue<decimal> startingPrice,
        RangeValue<decimal> curBid, RangeValue<DateTime> efd)
    {
        _proName = proName;
        _catID = catID;
        _startingPrice = startingPrice;
        _curBid = curBid;
        _efd = efd;
    }
}
